package pers.xhh.shopapi.service;

import com.baomidou.mybatisplus.extension.service.IService;
import pers.xhh.shopapi.common.Mi;
import pers.xhh.shopapi.entity.MiGoodsAttrEntity;

/**
 * @author wei-xhh
 * @date 2020-11-22
 */
public interface MiGoodsAttrService extends IService<MiGoodsAttrEntity> {

    /**
     * 获取attr
     * @param id
     * @return
     */
    Mi getAttrById(Integer id);

    /**
     * 更新属性
     * @param id
     * @param attrValue
     * @return
     */
    Mi updateAttrById(Integer id, String attrValue);

    /**
     * 删除
     * @param id
     * @return
     */
    Mi deleteAttr(Integer id);
}
